package com.wkbb.basic.utils;

public class BusinessUtil {

    /**
     * @param className 班级名称
     * @return 返回IM群名称(截取25字节)
     * @throws Exception
     */
    public static String subClassName(String className)
    {
        String temp;
        String result=null;
        int count=0;
        for (int i = 0; i < className.length(); i++) {
            temp=className.charAt(i)+"";
            count+=temp.getBytes().length;
            if(count>25)
                break;
            result=result==null?temp:result+temp;
        }
        return result;
    }

}
